//
//  DoubleBallMoreViewController.m
//  JINYUNCAI
//
//  Created by LiJonius on 16/3/1.
//  Copyright © 2016年 Jonius. All rights reserved.
//

#import "DoubleBallMoreViewController.h"
#import "BallLotteryFormView.h"


@interface DoubleBallMoreViewController ()




@end

@implementation DoubleBallMoreViewController

- (void)viewDidLoad {
    
    [super viewDidLoad];
    
    
    NSArray* array = @[@[@"第1列",@"2",@"3",@"4",@"5",@"6"],@[@"第2列",@"12",@"13",@"14",@"15",@"16"],@[@"第3列",@"222",@"333",@"444",@"555",@"666"]];

    UIColor* titleTextColor = RGBA(80, 80, 80, 1);

    UIColor* titleBackgroundColor = RGBA(252, 253, 247, 1);

    UIColor* color1 = [UIColor lightGrayColor];
    UIColor* color2 = [UIColor blackColor];
    UIColor* color3 = [UIColor redColor];
    NSArray* colorArray = @[color1,color2,color3];

    UIColor* contentColor= [UIColor whiteColor];
    UIColor* lineColor = RGBA(220, 220, 220, 1);

    // 需要完善：单独设置属性 然后再set 方法里面 setneedslayout
    BallLotteryFormView* view = [[BallLotteryFormView alloc]initWithFrame:CGRectMake(0, 84, Screen_width, 200) andMutableArray:[array mutableCopy] andColorArray:[colorArray mutableCopy]  andLeft:10 andRight:10 andRowHeight:20 andRowWidth:(Screen_width-20)/3 andTitleTextColor:titleTextColor andTitleBackGroundColor:titleBackgroundColor andContentColor:contentColor andLineColor:lineColor andIsLine:YES];
    
    [self.view addSubview:view];
    
    
    //
    NSArray* array2 = @[@[@"奖项",@"一等奖",@"二等奖",@"三等奖",@"四等奖",@"五等奖",@"六等奖"],@[@"中奖注数",@"1",@"11",@"111",@"1111",@"11111",@"111111"],@[@"没注奖金",@"2",@"233",@"334",@"54444",@"611111",@"611111"]];
    
    BallLotteryFormView* view2 = [[BallLotteryFormView alloc]initWithLotteryFrame:CGRectMake(0, CGRectGetMidY(view.frame) + 30, Screen_width, 200) andMutableArray:[array2 copy]];
    
    [self.view addSubview:view2];
    
}





@end
